package com.xiaoxin.yixinai.activity.distributerule;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xiaoxin.yixinai._frame.base.BaseModel;

/**
 * 分销规则
 * @author wsg
 *
 */
@Entity
@Table(name = "tb_activity_distribute_rule")
public class DistributeRule extends BaseModel {

    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    /**
     * 活动id
     */
    @Column(name = "activity_id")
    private Integer activityId;
    
    /**
     * 分享条件（1：首次分享；2：累计分享天数；3：累计分享次数；4不限制）
     */
    @Column(name = "share_type")
    private Integer shareType;
    
    /**
     * 分享天数
     */
    @Column(name = "share_day")
    private Integer shareDay;
    
    /**
     * 分享次数
     */
    @Column(name = "share_num")
    private Integer shareNum;
    
    /**
     * 预览条件（1：累计预览人次；2：累计留言人次；3不限制）
     */
    @Column(name = "view_type")
    private Integer viewType;
    
    /**
     * 预览人次
     */
    @Column(name = "view_num")
    private Integer viewNum;
    
    /**
     * 留言人次
     */
    @Column(name = "liuyan_num")
    private Integer liuyanNum;
    
    /**
     * 奖励类型（1：微信红包；2：兑换券；3：返利感谢金；4：线下实物；5：虚拟礼品）
     */
    @Column(name = "reward_type")
    private Integer rewardType;
    
    /**
     * 红包总金额
     */
    @Column(name = "total_money")
    private Double totalMoney;
    
    /**
     * 红包奖励方式（1：平价分配；2：随机分配）
     */
    @Column(name = "money_type")
    private Integer moneyType;
    
    /**
     * 最小金额
     */
    @Column(name = "min_money")
    private Double minMoney;
    
    /**
     * 最大金额
     */
    @Column(name = "max_money")
    private Double maxMoney;
    
    /**
     * 规则预览
     */
    @Column(name = "preview")
    private String preview;
    
    @Column(name = "company_id")
    private Integer companyId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getActivityId() {
		return activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}

	public Integer getShareType() {
		return shareType;
	}

	public void setShareType(Integer shareType) {
		this.shareType = shareType;
	}

	public Integer getShareDay() {
		return shareDay;
	}

	public void setShareDay(Integer shareDay) {
		this.shareDay = shareDay;
	}

	public Integer getShareNum() {
		return shareNum;
	}

	public void setShareNum(Integer shareNum) {
		this.shareNum = shareNum;
	}

	public Integer getViewType() {
		return viewType;
	}

	public void setViewType(Integer viewType) {
		this.viewType = viewType;
	}

	public Integer getViewNum() {
		return viewNum;
	}

	public void setViewNum(Integer viewNum) {
		this.viewNum = viewNum;
	}

	public Integer getLiuyanNum() {
		return liuyanNum;
	}

	public void setLiuyanNum(Integer liuyanNum) {
		this.liuyanNum = liuyanNum;
	}

	public Integer getRewardType() {
		return rewardType;
	}

	public void setRewardType(Integer rewardType) {
		this.rewardType = rewardType;
	}

	public Double getTotalMoney() {
		return totalMoney;
	}

	public void setTotalMoney(Double totalMoney) {
		this.totalMoney = totalMoney;
	}

	public Integer getMoneyType() {
		return moneyType;
	}

	public void setMoneyType(Integer moneyType) {
		this.moneyType = moneyType;
	}

	public Double getMinMoney() {
		return minMoney;
	}

	public void setMinMoney(Double minMoney) {
		this.minMoney = minMoney;
	}

	public Double getMaxMoney() {
		return maxMoney;
	}

	public void setMaxMoney(Double maxMoney) {
		this.maxMoney = maxMoney;
	}

	public String getPreview() {
		return preview;
	}

	public void setPreview(String preview) {
		this.preview = preview;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	
	
    
}
